<%@ page import="pojo.Goods" %>
<%@ page import="pojo.Manager" %><%--
  Created by IntelliJ IDEA.
  User: konley
  Date: 2020/6/20
  Time: 14:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    Goods goods = (Goods) request.getAttribute("goods");
%>
<html>
<head>
    <title><%=goods.getName()%></title>
    <script src="${pageContext.request.contextPath }/js/jquery-3.4.1.js" type="text/javascript"
            charset="utf-8"></script>
    <script src="${pageContext.request.contextPath }/js/bootstrap.js" type="text/javascript" charset="utf-8"></script>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/css/bootstrap.css"/>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/css/mistore.css"/>
</head>
<body>
<!--top-->
<div id="navi">
    <div style="background-color:#333333;" id="nav">
        <div class="container" style="height: 40px">
            <div class="row">
                <div class="col-sm-8" style="margin-top: 9px">
                    <ul class="top-nav" style="float: left">
                        <li><a href="index.jsp">小米商城</a></li>
                        <li>|</li>
                        <li><a href="#">MIUI</a></li>
                        <li>|</li>
                        <li><a href="#">IoT</a></li>
                        <li>|</li>
                        <li><a href="#">云服务</a></li>
                        <li>|</li>
                        <li><a href="#">小爱开放平台</a></li>
                        <li>|</li>
                        <li><a href="#">企业团购</a></li>
                        <li>|</li>
                        <li><a href="#">资质证照</a></li>
                        <li>|</li>
                        <li><a href="#">规则协议</a></li>
                        <li>|</li>
                        <li><a href="#">下载app</a></li>
                        <li>|</li>
                        <li><a href="#">Select Location</a></li>
                    </ul>
                </div>
                <% Manager manager = (Manager) session.getAttribute("manager");%>
                <div class="col-sm-4" style="margin-top: 9px">
                    <ul class="top-nav" style="float: left">
                        <li style="color: #ec971f">欢迎您，管理员，工号<%=manager.getId()%>
                        </li>
                        <li>|</li>
                        <li><a href="managerView.jsp">返回管理页</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
<br>
<!--标题栏-->
<div class="container" style="border-bottom: 1px solid #ccc;padding-bottom: 10px">
    <div class="row">
        <div class="col-sm-8 text-left">
            <h3><%=goods.getName()%><span style="color: #888"> | 商品编码  SN-<%=goods.getId()%></span></h3>
        </div>
    </div>
</div>
<br>
<!--商品详情-->
<div class="container">
    <div class="row">
        <!--商品图片-->
        <div class="col-sm-5">
            <br>
            <img src="<%=goods.getUrl()%>" width="100%">
        </div>
        <!--商品信息-->
        <div class="col-sm-7">
            <h3><%=goods.getName()%></h3>
            <br>
            <h4 style="color: #888;line-height: 25px"><%=goods.getInfo()%></h4>
            <hr>
            <h5 style="color: #ff6700">小米自营</h5>
            <h3 style="color:#ff6700 "><%=goods.getMoney()%>元</h3>
            <hr>
            <div style="border: 1px solid #ccc;background:#fafafa;padding: 25px">
                <p>送至：北京 北京市 海淀区 清河街道</p>
                <p style="color:#ff6700 ">库存：<%=goods.getStock()%>件</p>
            </div>
        </div>
    </div>
    <!--底栏-->
    <div class="row" style="margin-top: 50px">
        <div class="col-sm-12 text-center" style="margin-top: 150px">
            <p>简体 | 繁体 | Englis | 常见问题 | 隐私政策</p>
            <p>小米公司版权所有 -京ICP备10046444 -京公网安备11010802020134号 -京ICP证110507号</p>
        </div>
    </div>
</div>
</body>
</html>
